package com.meanbean.studytime;

import javafx.application.Application;
import javafx.stage.Stage;

/**
 * Entry point to the StudyTime application.
 * @author Derek Webb
 *
 */
public class StudyTimeMain extends Application
{
	public static String VERSION = "2.0.0";
	public static StudyTimeStage studyTimeStage;
	
	private static String stfToLoad = null;
	
	/**
	 * Launches the JavaFX application.
	 * @param args Command line arguments
	 */
	public static void main(String[] args)
	{
		if (args.length > 0)
			stfToLoad = args[0];
		
		launch(args);
	}

	/**
	 * Creates and displays a StudyTimeStage.
	 * @see javafx.application.Application#start(javafx.stage.Stage)
	 */
	@Override
	public void start(Stage primaryStage) throws Exception
	{
		studyTimeStage = new StudyTimeStage(stfToLoad);
		studyTimeStage.show();
	}
}
